import request from '@/utils/request'

// 查询消费记录列表
export function listShow(query) {
  return request({
    url: '/bill/show/list',
    method: 'get',
    params: query
  })
}

// 查询消费记录详细
export function getShow(billId) {
  return request({
    url: '/bill/show/' + billId,
    method: 'get'
  })
}

// 新增消费记录
export function addShow(data) {
  return request({
    url: '/bill/show',
    method: 'post',
    data: data
  })
}

// 修改消费记录
export function updateShow(data) {
  return request({
    url: '/bill/show',
    method: 'put',
    data: data
  })
}

// 删除消费记录
export function delShow(billId) {
  return request({
    url: '/bill/show/' + billId,
    method: 'delete'
  })
}
